package com.ruoyi.business.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.business.mapper.BusSpjgFeeMapper;
import com.ruoyi.business.domain.BusSpjgFee;
import com.ruoyi.business.service.IBusSpjgFeeService;

/**
 * 能源消耗Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-07-21
 */
@Service
public class BusSpjgFeeServiceImpl implements IBusSpjgFeeService 
{
    @Autowired
    private BusSpjgFeeMapper busSpjgFeeMapper;

    /**
     * 查询能源消耗
     * 
     * @param id 能源消耗主键
     * @return 能源消耗
     */
    @Override
    public BusSpjgFee selectBusSpjgFeeById(Long id)
    {
        return busSpjgFeeMapper.selectBusSpjgFeeById(id);
    }

    /**
     * 查询能源消耗列表
     * 
     * @param busSpjgFee 能源消耗
     * @return 能源消耗
     */
    @Override
    public List<BusSpjgFee> selectBusSpjgFeeList(BusSpjgFee busSpjgFee)
    {
        return busSpjgFeeMapper.selectBusSpjgFeeList(busSpjgFee);
    }

    /**
     * 新增能源消耗
     * 
     * @param busSpjgFee 能源消耗
     * @return 结果
     */
    @Override
    public int insertBusSpjgFee(BusSpjgFee busSpjgFee)
    {
        return busSpjgFeeMapper.insertBusSpjgFee(busSpjgFee);
    }

    /**
     * 修改能源消耗
     * 
     * @param busSpjgFee 能源消耗
     * @return 结果
     */
    @Override
    public int updateBusSpjgFee(BusSpjgFee busSpjgFee)
    {
        return busSpjgFeeMapper.updateBusSpjgFee(busSpjgFee);
    }

    /**
     * 批量删除能源消耗
     * 
     * @param ids 需要删除的能源消耗主键
     * @return 结果
     */
    @Override
    public int deleteBusSpjgFeeByIds(Long[] ids)
    {
        return busSpjgFeeMapper.deleteBusSpjgFeeByIds(ids);
    }

    /**
     * 删除能源消耗信息
     * 
     * @param id 能源消耗主键
     * @return 结果
     */
    @Override
    public int deleteBusSpjgFeeById(Long id)
    {
        return busSpjgFeeMapper.deleteBusSpjgFeeById(id);
    }
}
